#ifndef STATE_MEN_DR
#define STATE_MEN_DR

#include <time.h>
#include <SDL.h>

#include "../Delta-Ray/state.h"

class State;

class StateMenager
{
public:
	StateMenager(int a_tickrate);
	void NewState(State *a_new, StateMenager *a_stmen,SDL_Surface *a_S_SCREEN);
	void TickState();
	void EndState();

	void UpdateAlive(bool a_op);
	bool GetAlive();
private:
    State *cur_state;
    float timer_cur,last_timer_update;
    int tick_per_s;
    bool keep_alive;
};

#endif
